﻿using System;
using UnityEngine;

namespace ProjScan.GUIExtensions
{
	// Token: 0x02000315 RID: 789
	public class ActionEntry : TableEntry
	{
		// Token: 0x06001292 RID: 4754 RVA: 0x00058588 File Offset: 0x00056788
		public override void DrawEntry(float width, float height)
		{
			bool flag = GUILayout.Button(this.name, new GUILayoutOption[]
			{
				GUILayout.Width(width),
				GUILayout.Height(height)
			});
			if (flag)
			{
				bool flag2 = this.action != null;
				if (flag2)
				{
					this.action();
				}
			}
		}

		// Token: 0x17000394 RID: 916
		// (get) Token: 0x06001293 RID: 4755 RVA: 0x000585D8 File Offset: 0x000567D8
		public override string comparingValue
		{
			get
			{
				return this.name;
			}
		}

		// Token: 0x06001294 RID: 4756 RVA: 0x00008B6F File Offset: 0x00006D6F
		public ActionEntry(string name, Action action)
		{
			this.name = name;
			this.action = action;
		}

		// Token: 0x04000B02 RID: 2818
		private string name;

		// Token: 0x04000B03 RID: 2819
		private Action action;
	}
}
